Optimal. Leaf size=176 \[ \frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )+\frac{b \log \left (c^{2/3} x^2-\sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{b \log \left (c^{2/3} x^2+\sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{\sqrt{3} b \tan ^{-1}\left (\frac{1}{\sqrt{3}}-\frac{2 \sqrt [3]{c} x}{\sqrt{3}}\right )}{16 c^{8/3}}+\frac{\sqrt{3} b \tan ^{-1}\left (\frac{2 \sqrt [3]{c} x}{\sqrt{3}}+\frac{1}{\sqrt{3}}\right )}{16 c^{8/3}}-\frac{b \tanh ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{3 b x^5}{40 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.283719, antiderivative size = 176, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.571, Rules used = {6097, 321, 296, 634, 618, 204, 628, 206} \[ \frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )+\frac{b \log \left (c^{2/3} x^2-\sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{b \log \left (c^{2/3} x^2+\sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{\sqrt{3} b \tan ^{-1}\left (\frac{1}{\sqrt{3}}-\frac{2 \sqrt [3]{c} x}{\sqrt{3}}\right )}{16 c^{8/3}}+\frac{\sqrt{3} b \tan ^{-1}\left (\frac{2 \sqrt [3]{c} x}{\sqrt{3}}+\frac{1}{\sqrt{3}}\right )}{16 c^{8/3}}-\frac{b \tanh ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{3 b x^5}{40 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6097
Rule 321
Rule 296
Rule 634
Rule 618
Rule 204
Rule 628
Rule 206
Rubi steps
\begin{align*} \int x^7 \left (a+b \tanh ^{-1}\left (c x^3\right )\right ) \, dx &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )-\frac{1}{8} (3 b c) \int \frac{x^{10}}{1-c^2 x^6} \, dx\\ &=\frac{3 b x^5}{40 c}+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )-\frac{(3 b) \int \frac{x^4}{1-c^2 x^6} \, dx}{8 c}\\ &=\frac{3 b x^5}{40 c}+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )-\frac{b \int \frac{1}{1-c^{2/3} x^2} \, dx}{8 c^{7/3}}-\frac{b \int \frac{-\frac{1}{2}-\frac{\sqrt [3]{c} x}{2}}{1-\sqrt [3]{c} x+c^{2/3} x^2} \, dx}{8 c^{7/3}}-\frac{b \int \frac{-\frac{1}{2}+\frac{\sqrt [3]{c} x}{2}}{1+\sqrt [3]{c} x+c^{2/3} x^2} \, dx}{8 c^{7/3}}\\ &=\frac{3 b x^5}{40 c}-\frac{b \tanh ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )+\frac{b \int \frac{-\sqrt [3]{c}+2 c^{2/3} x}{1-\sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{8/3}}-\frac{b \int \frac{\sqrt [3]{c}+2 c^{2/3} x}{1+\sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{8/3}}+\frac{(3 b) \int \frac{1}{1-\sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{7/3}}+\frac{(3 b) \int \frac{1}{1+\sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{7/3}}\\ &=\frac{3 b x^5}{40 c}-\frac{b \tanh ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )+\frac{b \log \left (1-\sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}-\frac{b \log \left (1+\sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}+\frac{(3 b) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-2 \sqrt [3]{c} x\right )}{16 c^{8/3}}-\frac{(3 b) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+2 \sqrt [3]{c} x\right )}{16 c^{8/3}}\\ &=\frac{3 b x^5}{40 c}-\frac{\sqrt{3} b \tan ^{-1}\left (\frac{1-2 \sqrt [3]{c} x}{\sqrt{3}}\right )}{16 c^{8/3}}+\frac{\sqrt{3} b \tan ^{-1}\left (\frac{1+2 \sqrt [3]{c} x}{\sqrt{3}}\right )}{16 c^{8/3}}-\frac{b \tanh ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^3\right )\right )+\frac{b \log \left (1-\sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}-\frac{b \log \left (1+\sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}\\ \end{align*}
Mathematica [A] time = 0.0302007, size = 198, normalized size = 1.12 \[ \frac{a x^8}{8}+\frac{b \log \left (c^{2/3} x^2-\sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{b \log \left (c^{2/3} x^2+\sqrt [3]{c} x+1\right )}{32 c^{8/3}}+\frac{b \log \left (1-\sqrt [3]{c} x\right )}{16 c^{8/3}}-\frac{b \log \left (\sqrt [3]{c} x+1\right )}{16 c^{8/3}}+\frac{\sqrt{3} b \tan ^{-1}\left (\frac{2 \sqrt [3]{c} x-1}{\sqrt{3}}\right )}{16 c^{8/3}}+\frac{\sqrt{3} b \tan ^{-1}\left (\frac{2 \sqrt [3]{c} x+1}{\sqrt{3}}\right )}{16 c^{8/3}}+\frac{3 b x^5}{40 c}+\frac{1}{8} b x^8 \tanh ^{-1}\left (c x^3\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 186, normalized size = 1.1 \begin{align*}{\frac{{x}^{8}a}{8}}+{\frac{{x}^{8}b{\it Artanh} \left ( c{x}^{3} \right ) }{8}}+{\frac{3\,b{x}^{5}}{40\,c}}+{\frac{b}{16\,{c}^{3}}\ln \left ( x-\sqrt [3]{{c}^{-1}} \right ){\frac{1}{\sqrt [3]{{c}^{-1}}}}}-{\frac{b}{32\,{c}^{3}}\ln \left ({x}^{2}+\sqrt [3]{{c}^{-1}}x+ \left ({c}^{-1} \right ) ^{{\frac{2}{3}}} \right ){\frac{1}{\sqrt [3]{{c}^{-1}}}}}+{\frac{b\sqrt{3}}{16\,{c}^{3}}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{\frac{x}{\sqrt [3]{{c}^{-1}}}}+1 \right ) } \right ){\frac{1}{\sqrt [3]{{c}^{-1}}}}}-{\frac{b}{16\,{c}^{3}}\ln \left ( x+\sqrt [3]{{c}^{-1}} \right ){\frac{1}{\sqrt [3]{{c}^{-1}}}}}+{\frac{b}{32\,{c}^{3}}\ln \left ({x}^{2}-\sqrt [3]{{c}^{-1}}x+ \left ({c}^{-1} \right ) ^{{\frac{2}{3}}} \right ){\frac{1}{\sqrt [3]{{c}^{-1}}}}}+{\frac{b\sqrt{3}}{16\,{c}^{3}}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{\frac{x}{\sqrt [3]{{c}^{-1}}}}-1 \right ) } \right ){\frac{1}{\sqrt [3]{{c}^{-1}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.88365, size = 659, normalized size = 3.74 \begin{align*} \frac{10 \, b c^{4} x^{8} \log \left (-\frac{c x^{3} + 1}{c x^{3} - 1}\right ) + 20 \, a c^{4} x^{8} + 12 \, b c^{3} x^{5} + 10 \, \sqrt{3} b c \sqrt{-\left (-c^{2}\right )^{\frac{1}{3}}} \arctan \left (\frac{\sqrt{3}{\left (2 \, c x + \left (-c^{2}\right )^{\frac{1}{3}}\right )} \sqrt{-\left (-c^{2}\right )^{\frac{1}{3}}}}{3 \, c}\right ) + 10 \, \sqrt{3} b{\left (c^{2}\right )}^{\frac{1}{6}} c \arctan \left (\frac{\sqrt{3}{\left (c^{2}\right )}^{\frac{1}{6}}{\left (2 \, c x +{\left (c^{2}\right )}^{\frac{1}{3}}\right )}}{3 \, c}\right ) + 5 \, \left (-c^{2}\right )^{\frac{2}{3}} b \log \left (c^{2} x^{2} + \left (-c^{2}\right )^{\frac{1}{3}} c x + \left (-c^{2}\right )^{\frac{2}{3}}\right ) - 5 \, b{\left (c^{2}\right )}^{\frac{2}{3}} \log \left (c^{2} x^{2} +{\left (c^{2}\right )}^{\frac{1}{3}} c x +{\left (c^{2}\right )}^{\frac{2}{3}}\right ) - 10 \, \left (-c^{2}\right )^{\frac{2}{3}} b \log \left (c x - \left (-c^{2}\right )^{\frac{1}{3}}\right ) + 10 \, b{\left (c^{2}\right )}^{\frac{2}{3}} \log \left (c x -{\left (c^{2}\right )}^{\frac{1}{3}}\right )}{160 \, c^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: KeyError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.49266, size = 281, normalized size = 1.6 \begin{align*} -\frac{1}{32} \, b c^{15}{\left (\frac{2 \, \left (-\frac{1}{c}\right )^{\frac{2}{3}} \log \left ({\left | x - \left (-\frac{1}{c}\right )^{\frac{1}{3}} \right |}\right )}{c^{17}} - \frac{2 \, \sqrt{3}{\left | c \right |}^{\frac{4}{3}} \arctan \left (\frac{1}{3} \, \sqrt{3} c^{\frac{1}{3}}{\left (2 \, x + \frac{1}{c^{\frac{1}{3}}}\right )}\right )}{c^{19}} + \frac{{\left | c \right |}^{\frac{4}{3}} \log \left (x^{2} + \frac{x}{c^{\frac{1}{3}}} + \frac{1}{c^{\frac{2}{3}}}\right )}{c^{19}} - \frac{2 \, \log \left ({\left | x - \frac{1}{c^{\frac{1}{3}}} \right |}\right )}{c^{\frac{53}{3}}} + \frac{2 \, \sqrt{3} \left (-c^{2}\right )^{\frac{2}{3}} \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{1}{c}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{1}{c}\right )^{\frac{1}{3}}}\right )}{c^{19}} - \frac{\left (-c^{2}\right )^{\frac{2}{3}} \log \left (x^{2} + x \left (-\frac{1}{c}\right )^{\frac{1}{3}} + \left (-\frac{1}{c}\right )^{\frac{2}{3}}\right )}{c^{19}}\right )} + \frac{1}{16} \, b x^{8} \log \left (-\frac{c x^{3} + 1}{c x^{3} - 1}\right ) + \frac{1}{8} \, a x^{8} + \frac{3 \, b x^{5}}{40 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]